<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文件上传测试</title>
</head>
<body>

<div>
    <h3>{{title}}</h3>
    <form action="http://localhost:8000/polls/upload_file" method="post" enctype="multipart/form-data" >
        {% csrf_token %}
        <input type="text" name="title" />
        <input type="file" name="file" />
        <button>提交</button>
    </form>
</div>
</body>
</html>